package com.ruoyi.employment.service.impl;

import com.ruoyi.employment.domain.THangOver;
import com.ruoyi.employment.mapper.THangOverMapper;
import com.ruoyi.employment.service.ITHangOverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 帮扶移交Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
@Service
public class THangOverServiceImpl implements ITHangOverService 
{
    @Autowired
    private THangOverMapper tHangOverMapper;

    /**
     * 查询帮扶移交
     * 
     * @param id 帮扶移交主键
     * @return 帮扶移交
     */
    @Override
    public THangOver selectTHangOverById(Long id)
    {
        return tHangOverMapper.selectTHangOverById(id);
    }

    /**
     * 查询帮扶移交列表
     * 
     * @param tHangOver 帮扶移交
     * @return 帮扶移交
     */
    @Override
    public List<THangOver> selectTHangOverList(THangOver tHangOver)
    {
        return tHangOverMapper.selectTHangOverList(tHangOver);
    }

    /**
     * 新增帮扶移交
     * 
     * @param tHangOver 帮扶移交
     * @return 结果
     */
    @Override
    public int insertTHangOver(THangOver tHangOver)
    {
        return tHangOverMapper.insertTHangOver(tHangOver);
    }

    /**
     * 修改帮扶移交
     * 
     * @param tHangOver 帮扶移交
     * @return 结果
     */
    @Override
    public int updateTHangOver(THangOver tHangOver)
    {
        return tHangOverMapper.updateTHangOver(tHangOver);
    }

    /**
     * 批量删除帮扶移交
     * 
     * @param ids 需要删除的帮扶移交主键
     * @return 结果
     */
    @Override
    public int deleteTHangOverByIds(Long[] ids)
    {
        return tHangOverMapper.deleteTHangOverByIds(ids);
    }

    /**
     * 删除帮扶移交信息
     * 
     * @param id 帮扶移交主键
     * @return 结果
     */
    @Override
    public int deleteTHangOverById(Long id)
    {
        return tHangOverMapper.deleteTHangOverById(id);
    }
}
